# -*- coding:utf-8 -*-
# @Time:2024/4/1921:01
# @Author:miuzg
# @FileName:new test2.py
# @Software:PyCharm
import requests
import pickle

# 提取登录认证嘻嘻你 -- cookie数据
with open('zzk.cookie', 'rb')as f:
    cookie = pickle.load(f)

# 注意检查网址
url = 'http://python.zzhitong.com/#html'
res = requests.get(url, cookies=cookie)
print(res.text)

with open('课件.html', 'w', encoding='utf-8')as f:
    f.write(res.text)
